package com.ruoyi.app.converter;

import com.ruoyi.app.domain.company.CompanyDetail;
import com.ruoyi.app.domain.company.CompanyInfo;
import com.ruoyi.app.domain.register.CompanyRegister;
import com.ruoyi.app.domain.register.DemanderRegister;
import com.ruoyi.service.company.entity.CompanyEntity;
import org.mapstruct.Mapper;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

/**
 * <p>
 * 作用：公司信息转换器
 * </p>
 *
 * @author Zane
 * @since 2025-10-05 8:05
 */
@Mapper(uses = {})
public interface CompanyConverter {

  CompanyConverter INSTANCE = Mappers.getMapper(CompanyConverter.class);

  /**
   * 模型类转换成实体类
   */
  @Mappings({})
  CompanyEntity toCompanyEntity(DemanderRegister companyRegister);

  /**
   * 模型类转换成实体类
   */
  @Mappings({})
  CompanyEntity toCompanyEntity(CompanyRegister companyRegister);

  /**
   * 实体类转换成模型类
   */
  @Mappings({})
  CompanyInfo toCompanyInfo(CompanyEntity companyEntity);

  @Mappings({})
  CompanyDetail toCompanyDetail(CompanyEntity company);
}
